<?php
//echo $extra;
print_r($_POST);



if(count($_POST['citys'])<=0) {
	echo 'Please Select on at least';
	exit;	
}

$citys = array();
foreach($_POST['citys'] as $v) {
	$citys[] = intval($v);
}

$citys_str = implode(",",$citys);


$suburbs=array();		


	$sql = "SELECT * FROM property_city_list WHERE gamearea in ($citys_str)  ORDER BY gamegroup ASC";
	$comps = $db->QueryArray($sql);
													
foreach ($comps as $companya)
	{
	$suburbs[] = $companya['gamegroup'];	 
}
	
	print_r($suburbs);


	$smarty->assign('suburbs', $suburbs);
	
	$smarty->assign('suburbs_count', count($suburbs));
	$html_title = $translations['suburbs']['page_title'];
	$template = 'suburbs.tpl';
?>

?>